#!/bin/bash

echo "//****Ejecutando launcher de $1****\\\\"

for line in $(cat "$1.conf"); do 
	echo "-ejecutando $line"
	case $line in
		"ADP") 
			lanzar="../out/launcher_adp; ../out/adp"
			break;;
		"ADPT") 
			lanzar="../out/launcher_adpt; ../out/adpt"
			break;;
		"AGV") 
			lanzar="../out/launcher_agv; ../out/agv"
			break;;
		"DESPACHO") 
			lanzar="../out/launcher_despacho; ../out/despacho"
			break;;
		"ROBOT11") 
			lanzar="../out/launcher_robot11; ../out/robot11"
			break;;
		"ROBOT14") 
			lanzar="../out/launcher_robot14; ../out/robot14"
			break;;
		"ROBOT16") 
			lanzar="../out/launcher_robot16; ../out/robot16"
			break;;
		"ROBOT5") 
			lanzar="../out/launcher_robot5; ../out/robot5"
			break;;
		"ROBOT12") 
			lanzar="../out/launcher_robot12; ../out/robot12"
			break;;
	esac
	gnome-terminal --execute ./keeper.sh $lanzar
done
